﻿/// <reference path="homecodebehind.js" />
(function () {
    "use strict";

    WinJS.UI.Pages.define("/pages/home/home.html", {
        // This function is called whenever a user navigates to this page. It
        // populates the page elements with the app's data.
        init: function (element, options) {
            HomeCodeBehind.loadLastEvent();
        },

        ready: function (element, options) {
            HomeCodeBehind.addAddNewFileEvent();
            HomeCodeBehind.addMicEvent();
            HomeCodeBehind.choosePianoEvent();
            HomeCodeBehind.chooseGuitarEvent();
            HomeCodeBehind.chooseCustomEvent();

            // snapped view
            //window.onresize = function () {
            //    var elem = document.getElementById("list-view").winControl;
            //    elem.layout.type = new WinJS.UI.ListLayout();
            //}
        }
    });
})();
